package com.manager.common.constant;

/**
 * @ClassName TcpFileReportType
 * @Description TODO
 * @Author @LiuHongJun
 * @Date 2025-10-10 10:49
 * @Version 1.0
 *
 * 1:离群日志、2:http、3:tcp、4:特征、5:异常行为流量、6:状态统计信息（json key value对方式），7：判决日志
 */

public enum TcpFileReportDownloadType {

    OUTER_LOG(1,"离群日志"),

    HTTP(2,"http"),

    TCP(3,"tcp"),

    ZYNQ_HANDLE(4,"ZYNQ特征提取"),

    TRAFFIC_EXCEPTION_GATHER(5,"网络攻击与异常流量数据采集"),

    FIRST_PAGE_COUNT(6,"首页状态数据"),

    DECISION(7,"判决日志");

    private int code;

    private String desc;

    private TcpFileReportDownloadType(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static TcpFileReportDownloadType getTcpFileReportType(int code) {
        TcpFileReportDownloadType[] tcpFileReportDownloadTypes = TcpFileReportDownloadType.values();
        for (TcpFileReportDownloadType tcpFileReportDownloadType : tcpFileReportDownloadTypes) {
            if (tcpFileReportDownloadType.getCode() == code) {
                return tcpFileReportDownloadType;
            }
        }
        return null;
    }


}
